import request from '../common/request.js'
//获取广告
export const ApiGetAdvert = (data) => {
	 return request({
	        url: `advert/${data.current}/${data.size}/1`,
	        method: 'get',
	        data
	})
}
// 获取职位列表
export const ApiGetJobList = (jobPage,data) => {
		 return request({
	        url: `recruitmentInfo/${jobPage.current}/${jobPage.size}`,
	        method: 'post',
			data
	})
}

export const findRecruitmentInfo = (data) => {
		 return request({
	        url: `recruitmentInfo/findByEnterpriseId/${data.id}`,
	        method: 'get'
	})
}
export const saveUserLog = (data) => {
	 return request({
	        url: `userLog/save`,
	        method: 'post',
			data
	})
}
export const  recommend= (data) => {
	 return request({
	        url: `userLog/recommend/${data.id}`,
	        method: 'get'
	})
}
export const  findAllCandidate= (data) => {
	 return request({
	        url: `candidates/findAll`,
	        method: 'get'
	})
}
export const  conditionCandidate= (data) => {
	 return request({
	        url: `candidates/condition`,
	        method: 'post',
			data
	})
}